<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>目录树</title>

</head>
<body>

	<script type="text/javascript">
	function treeChangedCall(_container,_zTree){
		var allA = _container.find("a");
		allA.each(function(i){
			var a = allA.eq(i);
			var href = a.attr("href");
			if(href){
				a.removeAttr("href");
				a.attr("hrefTemp",href);
				a.click(function(){
					_.window({
						url:href,
						title : a.text()
					}).display();
				});
			}
		});
	}
	</script>
	
	<ul changer="tree" id="api_tree" config="{showLine:true,endChanger:treeChangedCall}" class="tree">
		<li config="{open:true}">
			<span>组件</span>
			<ul>
				<li config="{url:'page/test/window.html'}"><span>弹出窗口</span></li>
				<li config="{url:'page/test/button.html'}"><span>按钮</span></li>
				<li config="{url:'page/test/a.html'}"><span>超链接</span></li>
				<li config="{url:'page/test/link.html'}"><span>快捷方式</span></li>
			</ul>
		</li>
		<li config="{open:false}">
			<span>插件</span>
			<ul>
				<li><span>目录树</span></li>
				<li><span>富文本编辑器</span></li>
				<li><span>数据表格</span></li>
				<li><span>多文件上传</span></li>
			</ul>
		</li>
	</ul>
			
</body>
</html>